package com.dianning.web.action;

import org.apache.commons.logging.*;
import com.dianning.bean.Visitor;
import com.dianning.service.VisitorService;

public class Test extends BaseAction{

	private static final Log logger = LogFactory.getLog(Test.class);

	private VisitorService visitorService;
	
	public VisitorService getVisitorService() {
		return visitorService;
	}

	public void setVisitorService(VisitorService visitorService) {
		this.visitorService = visitorService;
	}

	private Visitor visitor; 
	
	public Visitor getVisitor() {
		return visitor;
	}

	public void setVisitor(Visitor visitor) {
		this.visitor = visitor;
	}

	public String execute() {
		this.setVisitor(this.getVisitorService().findVisitorById(1));
		return SUCCESS;
	}
}
